<?php
session_start();
if(isset($_SESSION['username'])){

include "../config/mysql.php";
header("content-type:text/html;charset=utf-8");
$id=$_GET["id"];
 $tr=$pdo->exec("delete from message where id=$id");
 if($tr){
 	header("refresh:1;url=../message.php");
 	print("删除成功,请等候...");
}else{
 	header("refresh:1;url=../message.php");
 	print("删除失败,请等候...");
}

}else{
	 header("Location:../log.php");
      exit();
}


?>